package com.jz.banner.screen.banner.utils


object ActivityUtils {
    var mCurrentRunActivity: String? = null

    fun isRunBannerScreen(): Boolean {
//        val am: ActivityManager? = App.context!!.getSystemService(ACTIVITY_SERVICE) as ActivityManager?
//        val cn: ComponentName? = am?.getRunningTasks(1)?.get(0)?.topActivity
        return "com.jz.banner.screen.banner.ui.BannerActivity" == mCurrentRunActivity
    }
    fun isRunLoginScreen(): Boolean {
//        val am: ActivityManager? = App.context!!.getSystemService(ACTIVITY_SERVICE) as ActivityManager?
//        val cn: ComponentName? = am?.getRunningTasks(1)?.get(0)?.topActivity
        return "com.jz.banner.screen.ui.activity.LoginActivity" == mCurrentRunActivity
    }
}